package com.sc.web.gwt.client.service;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.sc.web.gwt.shared.model.UserAccount;

import java.util.List;

public interface UserAccountDataManagementServiceAsync {
    void changeState(int userAccountId, AsyncCallback<Boolean> async);

    void getUserAccountData(int userAccountId, AsyncCallback<UserAccount> async);

    void saveOrUpdateUserAccountData(UserAccount userAccount, AsyncCallback<Boolean> async);

    void getAllUserAccounts(AsyncCallback<List<UserAccount>> async);

    void createNewUserAccount(AsyncCallback<UserAccount> async);

    void searchUserAccounts(String searchText, int searchIndex, AsyncCallback<List<UserAccount>> async);
}
